package com.owen.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.ScrollPanel;

public class EpicTest implements EntryPoint {

	private final ScrollPanel appWidget = new ScrollPanel();;
	
	@Override
	public void onModuleLoad() {
		RootPanel root = RootPanel.get();

		appWidget.setPixelSize(770, 250);
		
		root.get().add(appWidget);
		
		GWT.log("Starting module");
		
		appWidget.add(UIFactoryInstance.getInstance().getClassPresenter().getDisplay());
		
		UIFactoryInstance.getInstance().getClassPresenter().populateTable();
		
		/* this is an example for using the old RPC style of communications
		HelloWorldServiceAsync service = (HelloWorldServiceAsync) GWT
				.create(HelloWorldService.class);

		Label myLabel = new Label("");

		panel.add(myLabel);

		// service logic
		ServiceDefTarget serviceDef = (ServiceDefTarget) service;

		serviceDef.setServiceEntryPoint(GWT.getModuleBaseURL()
				+ "helloWorldService");

		HelloWorldCallback myCallback = new HelloWorldCallback(myLabel, "Davis");

		service.getSalutation(myCallback);
		*/

	}
}
